﻿using System;
using System.Web.Mvc;
using System.ComponentModel.Design;
using System.ComponentModel.DataAnnotations;
namespace Think.Lenovo.Com.Models.Users
{
    /// <summary>
    /// 用户实体
    /// </summary>
    public class UserModel
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public int Id { set; get; }
        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(50)]
        public String UserName { set; get; }
        /// <summary>
        /// 用户密码
        /// </summary>
        [StringLength(32)]
        public String UserPassword { set; get; }

         /// <summary>
         /// 用户属角色Id
         /// </summary>
        public int UserRoleId { set; get; }

        /// <summary>
        /// 用户类型Id(角色表和等级表的关系表主键id)
        /// </summary>
        public int UserLevelId { set; get; }

        /// <summary>
        /// 用户状态Id
        /// </summary>
        public int UserStateId { set; get; }
    }
}
